% Florian Meyer, 22/04/15.

function [ newPositions ] = dynamics(oldPositions, parameter, inputs)
[sensorNum, ~] = size(oldPositions);
newPositions = zeros(sensorNum,2);
variance = parameter.dynamicsVariance;

for sensor = 1:sensorNum
    newPositions(sensor,:) = oldPositions(sensor,:) + inputs(sensor,:) + sqrt(variance)*randn(1,2);
end

end

